package com.fzy.core.common;

import lombok.Data;

@Data
public class UploadData {
		//图片名字
		private String original;
		//提示标题
		private String title;
		//图片路径
		private String url;
		//图片大小
		private long size;
		//图片类型
		private String type;
		//上传是否成功
		private String state;
		private UploadData(String original, String title, String url, long size, String type, String state) {
			super();
			this.original = original;
			this.title = title;
			this.url = url;
			this.size = size;
			this.type = type;
			this.state = state;
		}
		
		public UploadData() {
		}
		
		public static UploadData getUploadData(String original, String title, String url, long size, String type, String state){
			return new UploadData(original, title,  url,  size,  type,  state);
		}
}
